home *** CD-ROM | disk | FTP | other *** search
/ Openstep 4.2 (Developer) / Openstep Developer 4.2.iso / NextDeveloper / Source / GNU / uucp / Uucp.framework / unix.subproj / failed.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-09  |  426 b   |  27 lines

  1. /* failed.c
  2.    Save a file in the .Failed directory.  */
  3.  
  4. #include "uucp.h"
  5.  
  6. #include "sysdep.h"
  7. #include "uudefs.h"
  8. #include "system.h"
  9.  
  10. char *
  11. zsysdep_save_failed_file (zfile)
  12.      const char *zfile;
  13. {
  14.   char *zto;
  15.  
  16.   zto = zsappend3 (zSspooldir, FAILEDDIR, zfile);
  17.  
  18.   if (! fsysdep_move_file (zfile, zto, TRUE, FALSE, FALSE,
  19.                (const char *) NULL))
  20.     {
  21.       ubuffree (zto);
  22.       return NULL;
  23.     }
  24.  
  25.   return zto;
  26. }
  27.